package com.mrd.gtimpframe.entity;

import java.io.Serializable;
import java.util.Date;

public class TGenSupSrvProvide implements Serializable {
  private String id;

  private String supId;

  private String type;

  private String dicName;

  private String val;

  private String status;

  private String creator;

  private Date createTime;

  private String modifier;

  private Date modifiyTime;

  private static final long serialVersionUID = 1L;

  public TGenSupSrvProvide(String id, String type, String dicName, String val, String status,
      String creator, Date createTime, String modifier, Date modifiyTime) {
    this.id = id;
    // this.supId = supId;
    this.type = type;
    this.dicName = dicName;
    this.val = val;
    this.status = status;
    this.creator = creator;
    this.createTime = createTime;
    this.modifier = modifier;
    this.modifiyTime = modifiyTime;
  }

  public TGenSupSrvProvide() {
    super();
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id == null ? null : id.trim();
  }

  public String getSupId() {
    return supId;
  }

  public void setSupId(String supId) {
    this.supId = supId == null ? null : supId.trim();
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type == null ? null : type.trim();
  }

  public String getVal() {
    return val;
  }

  public void setVal(String val) {
    this.val = val == null ? null : val.trim();
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status == null ? null : status.trim();
  }

  public String getCreator() {
    return creator;
  }

  public void setCreator(String creator) {
    this.creator = creator == null ? null : creator.trim();
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public String getModifier() {
    return modifier;
  }

  public void setModifier(String modifier) {
    this.modifier = modifier == null ? null : modifier.trim();
  }

  public Date getModifiyTime() {
    return modifiyTime;
  }

  public void setModifiyTime(Date modifiyTime) {
    this.modifiyTime = modifiyTime;
  }

  public String getDicName() {
    return dicName;
  }

  public void setDicName(String dicName) {
    this.dicName = dicName;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append(" [");
    sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", supId=").append(supId);
    sb.append(", type=").append(type);
    sb.append(", dicName=").append(dicName);
    sb.append(", val=").append(val);
    sb.append(", status=").append(status);
    sb.append(", creator=").append(creator);
    sb.append(", createTime=").append(createTime);
    sb.append(", modifier=").append(modifier);
    sb.append(", modifiyTime=").append(modifiyTime);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append("]");
    return sb.toString();
  }

  @Override
  public boolean equals(Object that) {
    if (this == that) {
      return true;
    }
    if (that == null) {
      return false;
    }
    if (getClass() != that.getClass()) {
      return false;
    }
    TGenSupSrvProvide other = (TGenSupSrvProvide) that;
    return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
        && (this.getSupId() == null ? other.getSupId() == null
            : this.getSupId().equals(other.getSupId()))
        && (this.getType() == null ? other.getType() == null
            : this.getType().equals(other.getType()))
        && (this.getDicName() == null ? other.getDicName() == null
            : this.getDicName().equals(other.getDicName()))
        && (this.getVal() == null ? other.getVal() == null : this.getVal().equals(other.getVal()))
        && (this.getStatus() == null ? other.getStatus() == null
            : this.getStatus().equals(other.getStatus()))
        && (this.getCreator() == null ? other.getCreator() == null
            : this.getCreator().equals(other.getCreator()))
        && (this.getCreateTime() == null ? other.getCreateTime() == null
            : this.getCreateTime().equals(other.getCreateTime()))
        && (this.getModifier() == null ? other.getModifier() == null
            : this.getModifier().equals(other.getModifier()))
        && (this.getModifiyTime() == null ? other.getModifiyTime() == null
            : this.getModifiyTime().equals(other.getModifiyTime()));
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
    result = prime * result + ((getSupId() == null) ? 0 : getSupId().hashCode());
    result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
    result = prime * result + ((getDicName() == null) ? 0 : getDicName().hashCode());
    result = prime * result + ((getVal() == null) ? 0 : getVal().hashCode());
    result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
    result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
    result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
    result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
    result = prime * result + ((getModifiyTime() == null) ? 0 : getModifiyTime().hashCode());
    return result;
  }
}
